﻿using xbmc_json_async.Library;
using xbmc_json_async.Player;
using xbmc_json_async.JSONRPC;
using xbmc_json_async.Input;
namespace xbmc_json_async.System
{

    public class XConnection
    {
        public XAudioLibrary AudioLibrary;
        public XVideoLibrary VideoLibrary;
        public XAudioPlayer AudioPlayer;
        public XPlayer Player;
        public XClient Client;
        public XSystem System;
        public XVirtualRemote VirtualRemote;
        public XJsonRpc JsonRpc;
        public XInput Input;
        public XConnection(string ipAddress, int port, string userName, string password)
        {
            var settings = new XSettings(ipAddress, port, userName, password);
            var client = new XClient(settings);
            Client = client;
            XHelpers.Settings = settings;
            AudioLibrary = new XAudioLibrary(client);
            VideoLibrary = new XVideoLibrary(client);
            AudioPlayer = new XAudioPlayer(client);
            VirtualRemote = new XVirtualRemote(settings);
            System = new XSystem(client);
            JsonRpc = new XJsonRpc(client);
            Input = new XInput(client);
            // new for Eden
            //Player = new XPlayer(client);
        }

       
    }
}